<template>
    <span class='my-view'>
        <Button size="small" type="primary" @click="showCfgModal">编辑</Button>
        <ShowModalView ref="showModalView" @setData="handleSetData"/>
    </span>
</template>

<script>
    import ShowModalView from './showModalView'

export default {
    mixins: [],
    components: {
        ShowModalView
    },
    props: {
        configData: {

        }
    },
    data() {
        return {

        }
    },
    methods: {
        showCfgModal() {
            this.$refs.showModalView.show(this.configData)
        },
        handleSetData(obj) {
            this.configData[0].listWay = obj.listWay
            this.configData[0].titleWay = obj.titleWay
            this.$emit('success')
        }
    },
    mounted() {

    },
    created() {

    }
}
</script>

<style lang="scss" scoped>
.my-view {}
</style>